package com.gjy.spring.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-02-21 22:36:30
 */
@RestController
@RequestMapping("/nginx")
public class NginxController {
    private static final Logger log = LoggerFactory.getLogger(NginxController.class);

    @RequestMapping("/hello")
    public String hello(@RequestParam String name) {
        log.info("hello");
        return "hello " + name;
    }

    @RequestMapping("/hello2")
    public String hello2(@RequestParam String name) {
        log.info("hello2");
        return "hello2 " + name;
    }

}
